﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace com.haoest.QrPortal
{
    public partial class RenameDialog : Form
    {
        private string newName = null;

        public string NewName
        {
            get { return newName; }
            set { newName = value; }
        }

        public RenameDialog()
        {
            InitializeComponent();
        }

        private void button_Ok_Click(object sender, EventArgs e)
        {
            newName = textBox_NewName.Text;
            this.DialogResult = DialogResult.OK;
        }

        private void button_Cancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}
